/* Custom styles for Repair Troubleshooting System */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Navigation styles */
.navbar-brand {
    font-weight: bold;
}

/* Card styles */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Button styles */
.btn {
    font-weight: 500;
}

.btn-lg {
    font-size: 1.1rem;
}

/* Table styles */
.table th {
    font-weight: 600;
    color: #495057;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

/* Form styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Tree view styles */
.tree-view ul {
    padding-left: 1rem;
}

.tree-view a {
    color: #495057;
    text-decoration: none;
}

.tree-view a:hover {
    color: var(--primary-color);
}

/* Progress styles */
.progress {
    height: 8px;
}

.progress-bar {
    transition: width 0.3s ease;
}

/* Analysis styles */
.analysis-marker {
    transition: all 0.3s ease;
}

.analysis-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Responsive styles */
@media (max-width: 768px) {
    .btn-lg {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Custom utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-light-gray {
    background-color: #f8f9fa;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Status badges */
.badge {
    font-size: 0.75em;
}

/* Footer styles */
footer {
    margin-top: auto;
}

/* Interactive elements */
.clickable {
    cursor: pointer;
}

.clickable:hover {
    opacity: 0.8;
}

/* Image container */
.image-container {
    position: relative;
    overflow: hidden;
}

.image-container img {
    max-width: 100%;
    height: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}
